import request from '../unitls/request';
export function articleApi(params) {
  return request({
    url: '/v1_0/mp/articles',
    params,
  });
}
export function DeleApi(id) {
  return request({
    url: `/v1_0/mp/articles/${id}`,
    method: 'DELETE',
  });
}
// 1. 封装
export const publishArticleAPI = (data) => {
  return request({
    url: '/v1_0/mp/articles',
    method: 'post',
    data,
  });
};
